<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri = "http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
	<head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>
			SisOrange
		</title>
	</head>
	<body>
	<c:choose>
		<c:when test="${empty funcionario}">
			<c:redirect url="/"/>
		</c:when> 
		<c:otherwise>
			Bem vindo, ${funcionario.nome}
			<table cellpadding="10">
			<tr>
				<th><html:link forward="Home">Home</html:link></th>
				<th><html:link forward="Clientes">Clientes</html:link></th>
				<th><html:link forward="Funcionarios">Funcionarios</html:link></th>
				<th><html:link forward="Permanencias">Permanencias</html:link></th>
				<th><html:link forward="Produtos">Produtos</html:link></th>
				<th><html:link forward="Quartos">Quartos</html:link></th>
			</tr>
			</table>
		</c:otherwise>
	</c:choose>	
	